<%@ LANGUAGE="JavaScript" codepage=65001%><?xml version="1.0" encoding="UTF-8"?>
<!-- #include file="Config.asp" -->
<%
//==================================
//  Weather for google earth v1.0
//  更新时间: 2007-08-24
//  embont@gmail.com
//  www.dnxh.cn
//==================================

Response.ContentType = "text/xml";
Response.CharSet = 65001 ;

var code  = Request.QueryString("code");
var hl = Request.QueryString("hl");
var dnam=Request.QueryString("dnam");

//try{
        //=====Load xml========
        var oXml = Server.CreateObject("Microsoft.XMLDOM");
            oXml.async = false;
            oXml.load(Server.MapPath("xml/"+code+".xml"));
            
        //======Load xsl========
        var oXsl = Server.CreateObject("Microsoft.FreeThreadedXMLDOM");
            oXsl.async = false;
            if(hl=="en"){
            oXsl.load(Server.MapPath("style/en.xsl"))
            }else{
            oXsl.load(Server.MapPath("style/cn.xsl"));
            }
            
        //======xslt========
        var oXslt = Server.CreateObject("Msxml2.XSLTemplate");
            oXslt.stylesheet = oXsl;
        var oXslP = oXslt.createProcessor();
            oXslP.addParameter("dnam",dnam+"");
            oXslP.addParameter("ServerURL",ServerURL);
            oXslP.input = oXml;
            oXslP.output = Response;
			oXslP.transform();
		
		oXHy='';
		xml='';
		xslcn='';
//}catch(err){}

%>